package com.assignwork.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;
import org.springblade.core.tool.utils.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * @ClassName WorkArrangeLand
 * @Description 陆运配工
 * @Author dujianyu
 * @Date 2023/12/18 8:20
 */
@Data
@TableName("work_arrange_land")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "WorkArrangeLand对象", description = "陆运配工")
public class WorkArrangeLand extends TenantEntity {

    @ApiModelProperty(value = "作业线号")
    private String workNo;

    @DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
    @ApiModelProperty(value = "计划日期")
    private LocalDate planDate;

    @ApiModelProperty(value = "时间段")
    private String timeSpace;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "区域")
    private Long area;

    @ApiModelProperty(value = "装卸")
    private String loadType;

    @ApiModelProperty(value = "散杂")
    private String packageBulk;

    @ApiModelProperty(value = "作业类型")
    private String landWorkType;

    @ApiModelProperty(value = "工人信息")
    private String workerInfo;

    @ApiModelProperty(value = "固机信息")
    private String fixedMachineInfo;

    @ApiModelProperty(value = "吊车信息")
    private String craneInfo;

    @ApiModelProperty(value = "叉车信息")
    private String forkliftInfo;

    @ApiModelProperty(value = "牵引车信息")
    private String tractorInfo;

    @ApiModelProperty(value = "装载机信息")
    private String loaderInfo;

    @ApiModelProperty(value = "挖掘机信息")
    private String excavatorInfo;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "作业吨")
    private BigDecimal workTon;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "计划吨")
    private BigDecimal planTon;

    @ApiModelProperty(value = "船名")
    private String shipName;

    @ApiModelProperty(value = "货名")
    private String cargoType;

    @ApiModelProperty(value = "备注")
    private String remark;

}
